package Reflect;

public class Worker {
    private String name;
    private int age;

    public Worker(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Worker(){
        this.name = "勇哥";
        this.age = 2;
    }

    public void Work(){
        System.out.println("工作");
    }

    public void Workwith(String other){
        System.out.println(name+"和"+other+"工作");
    }

    private void dosome(int age){
        System.out.println(age);
    }
}
